<include file="Public:head" title="管理员列表"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('User/admin')}">管理员管理</a></li>
                    <li class="active">管理员列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="header smaller lighter blue clearfix">
                            <form class="form-search" method="get">
                                <div class="search_area">
                                    <input class="common_txt search_input"  type="text" name="keyword" autocomplete="off"  placeholder="请输入关键字" value="{$Think.get.keyword}">
                                    <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                </div>
                            </form>
                        </div>
                        <notempty name='lists'>
                            <div class="table-responsive">
                                <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th width='45px' class="center">id</th>
                                            <th style="width:120px;">管理员名称</th>
                                            <th style="width:80px;">手机</th>
                                            <th style="width:120px;">最后登录IP</th>
                                            <th style="width:130px;">最后登录时间</th>
                                            <th width="65px">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="lists" item="row">
                                        <tr>
                                            <td class="center">{$row.id}</td>
                                            <td style="text-align: left"><a href="{:U('User/admin_edit',array('id'=>$row['id']))}">{$row.name}</a></td>
                                            <td style="text-align: left">{$row.phone}</td>
                                           <td width="160px">{$row.loginip}</td>
                                            <td>{$row.logintime|date="Y-m-d H:i",###}</td>
                                            <td class="action-buttons">
                                                <a class="green" href="{:U('User/admin_edit',array('id'=>$row['id']))}" data-rel="tooltip" data-original-title="编辑"><i class="icon-pencil bigger-130"></i></a>
<!--                                                <a class="red" data-toggle="modal"  onclick="targetDelTable('{$row.id}')" data-rel="tooltip" data-original-title="删除"><i class="icon-trash bigger-130"></i></a>-->
                                            </td>
                                        </tr>
                                    </foreach>
                                    </tbody>
                                </table>

                            </div>
                            <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                <table width='100%' data-table='user'  id='modal_del_table'>
                                    <tr>
                                        <td>
                                            <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                <a class="purple" href="{:U('User/admin_add')}" data-rel="tooltip" data-original-title="添加">
                                                    <i class="icon-plus-sign bigger-130"></i>
                                                </a>
<!--                                                <a class="red" data-toggle="modal" onclick="targetDelTable(0)"  data-rel="tooltip" data-original-title="批量删除">
                                                    <i class="icon-trash bigger-130"></i>
                                                </a>-->
                                            </div>
                                        </td>
                                        <td class='td_pager'><div class='pager'>{$page}</div></td>
                                    </tr>
                                </table>
                            </div>
                            <else/>
                            <p class='noempty'>没有符合条件的记录,立即<a href="{:U('User/admin_add')}">添加</a></p>
                        </notempty>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<include file="Public:del" />
<include file="Public:foot" />